from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get('https://www.baidu.com')

cookies = [
    {
        'name': 'BDUSS_BFESS',
        'value': 'VWZ0p4MFRiSGZQcWEyUGNYN1ktMWZZUWZnNkEybkVHTzNZLVpEbS03eUN2dUZqSVFBQUFBJCQAAAAAAAAAAAEAAAA9GCsbztLSqtW9trfH4LS6trkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIxumOCMbpjTE'
    },
    {
        'name': 'BDUSS',
        'value': 'VWZ0p4MFRiSGZQcWEyUGNYN1ktMWZZUWZnNkEybkVHTzNZLVpEbS03eUN2dUZqSVFBQUFBJCQAAAAAAAAAAAEAAAA9GCsbztLSqtW9trfH4LS6trkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIxumOCMbpjTE'

    }
]
for cookie in cookies:
    driver.add_cookie(cookie)
    time.sleep(2)
driver.refresh()
